<template>
  <div class="com">
    <slot name="a"></slot>
    vue {{name}} - {{age}}
    <button @click="$emit('patch', 2)">submit</button>
    <slot name="b"></slot>
  </div>
</template>

<script>
export default {
  name: 'Com',
  props: ['age'],
  data () {
    return {
      name: 'com'
    }
  }
}
</script>

<style scoped>

</style>
